package com.itheima.edy.info.manager.controller;

import com.itheima.edy.info.manager.domain.Teacher;

import java.util.Scanner;

public class TeacherController extends BaseTeacherController{
   private Scanner sc = new Scanner(System.in);
    @Override
    public Teacher inputeTeacherInfo(String id) {
        System.out.println("请输入教师姓名");
        String name = sc.next();
        System.out.println("请输入教师年龄");
        int age = sc.nextInt();
        System.out.println("请输入教师生日");
        String birthday = sc.next();

        Teacher teacher = new Teacher();
        teacher.setId(id);
        teacher.setName(name);
        teacher.setAge(age);
        teacher.setBirthday(birthday);
        return teacher;

    }
}
